package czopyk.model.analysis.conditions;

import czopyk.model.request.LoadClass;

public class ResponseTimeCondition extends Condition {

	public final double boundary;
	public final LoadClass lc;
	
	public ResponseTimeCondition(double windowSize, WindowType windowType,
			double boundary, LoadClass lc) {
		super(windowSize, windowType);

		if (boundary > 1.0 || boundary < 0.0) {
			throw new IllegalArgumentException("Wrong boundary value: " + boundary
					+ ".Boundary must lay between 0.0 and 1.0.");
		}
		this.boundary = boundary;
		this.lc = lc;
	}

}
